<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>list</title>
<style type="text/css">
.bodiv{
margin-left:400px;
width:700px;
}
	td{
	border:black,2px;
	}
	.user{
	width:200px;
	float:right 
	}
	
	table,table tr th, table tr td { border:1px solid #0094ff; }
        table { width: 600px; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse;}   
	
</style>
</head>
<body>
<div class="bodiv">
<h1>add cargo</h1>
<form action="update" method="post">
<input type="hidden" name="id" value="${cargo.id}"/>
warehouse:<select name="w_id" >
<c:forEach items="${warehouse}" var="w" >
<option value=${w.id } <c:if test="${ cargo.w_id == w.id}"> selected</c:if>  >${w.addr }</option>
</c:forEach>
</select>${ew_id }<br>
cname:<input name="cname" type="text" value="${cargo.cname}">${ecname }<br>
price:<input name="price" type="text" value="${cargo.price}">${eprice }<br>
cnumber:<input name="cnumber" type="text"value="${cargo.cnumber}">${ecnumber }<br>
<button>submit</button>
</form>
</div>
</body>
</html>